package tk.zater.Controller;

import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.forwardedUrl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import tk.zater.CS.EsetUpdateThreadPool;

@Controller
public class EsetController {
@RequestMapping("forceUpdate.zater")
public String doUpdate(String name){
	for(int i=0;i<	EsetUpdateThreadPool.thread.size();i++){
	if(EsetUpdateThreadPool.thread.get(i).getName().equals(name))
	{
		EsetUpdateThreadPool.thread.get(i).interrupt();
		EsetUpdateThreadPool.thread.get(i).start();
	}
	
	}
	return "dashboard.jsp";
}
}
